package com.mall.common.config.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author: xrj
 * @date: 2022/5/1 1:43
 * @description:
 */
@Data
@ConfigurationProperties(prefix = "spring.redisson", ignoreUnknownFields = true)
public class redisConfig {
    /**
     * redis地址
     */
    private String address;

    /**
     * redis库序号,0-15
     */
    private int database;

    /**
     * 等待节点回复命令的时间。该时间从命令发送成功时开始计时
     */
    private int timeout;

    /**
     * 密码
     */
    private String password;

    /**
     * 连接池
     */
    private RedissonPool pool;
}
